/*
 * @Author: YuanSong 
 * @Date: 2021-11-24 20:39:46 
 * @Last Modified by: YuanSong
 * @Last Modified time: 2021-12-03 14:41:01
 */
import store from 'store';

import { THEMES } from './constants';

/**
 * 初始化主题
 * @param cartoonHistorys 后台返回的历史记录信息
 */
export function initThemes() {
    const themesInfo = {
        light: {
            foregroundColor: '#f2f2f2',
            backgroundColor: '#ffffff',
            spanColor: '#34373c',
            subSpanColor: '#34373c',
            buttonColor:'#000000',
            borderColor:'#2c2c2c',
            buttonBackgroundColor: '#ffffff',
            mattedSpanColor:'#666666',
            navigationBackgroundColor:'#ffffff',
            navigationActiveBackgroundColor:'#f0f0f0',
            navigationHoverBackgroundColor:'#f5fffa',
            buttonHoverBackgroundColor:'#f5fffa',
            
        },
        dark: {
            foregroundColor: '#34373c',
            backgroundColor: '#f2f2f2',
            spanColor: '#ffffff',
            subSpanColor: '#34373c',
            buttonColor:'#ffffff',
            borderColor:'#ffffff',
            buttonBackgroundColor: '#34373c',
            mattedSpanColor:'#999999',
            navigationBackgroundColor:'#34373c',
            navigationActiveBackgroundColor:'#b00860',
            navigationHoverBackgroundColor:'#b05880',
            buttonHoverBackgroundColor:'#b05880',
        },
        aqua:{
            foregroundColor: '#60b8c8',
            backgroundColor: '#ffffff',
            spanColor: '#ffffff',
            subSpanColor: '#34373c',
            buttonColor:'#ffffff',
            borderColor:'#2c2c2c',
            buttonBackgroundColor: '#60b8c8',
            mattedSpanColor:'#f0f0f0',
            navigationBackgroundColor:'#60b8c8',
            navigationActiveBackgroundColor:'#008080',
            navigationHoverBackgroundColor:'#20b2aa',
            buttonHoverBackgroundColor:'#20b2aa',
        },
        yellow:{
            foregroundColor: '#ffbf11',
            backgroundColor: '#ffffff',
            spanColor: '#ffffff',
            subSpanColor: '#34373c',
            buttonColor:'#34373c',
            borderColor:'#2c2c2c',
            buttonBackgroundColor: '#ffffff',
            mattedSpanColor:'#666666',
            navigationBackgroundColor:'#ffffff',
            navigationActiveBackgroundColor:'#ffbf11',
            navigationHoverBackgroundColor:'#deb887',
            buttonHoverBackgroundColor:'#deb887',
        },
        chocolate:{
            foregroundColor: '#d2691e',
            backgroundColor: '#ffffff',
            spanColor: '#ffffff',
            subSpanColor: '#34373c',
            buttonColor:'#ffffff',
            borderColor:'#2c2c2c',
            buttonBackgroundColor: '#d2691e',
            mattedSpanColor:'#f0f0f0',
            navigationBackgroundColor:'#d2691e',
            // navigationActiveBackgroundColor:'#d2691e',
            navigationActiveBackgroundColor:'#a63c06',
            navigationHoverBackgroundColor:'#f4a460',
            // buttonHoverBackgroundColor:'#bc8f8f',
            buttonHoverBackgroundColor:'#f4a460',
        },
        brown:{
            foregroundColor: '#a52a2a',
            backgroundColor: '#FFFFFF',
            spanColor: '#ffffff',
            subSpanColor: '#34373c',
            buttonColor:'#ffffff',
            borderColor:'#2c2c2c',
            buttonBackgroundColor: '#a52a2a',
            mattedSpanColor:'#f0f0f0',
            navigationBackgroundColor:'#a52a2a',
            navigationActiveBackgroundColor:'#710000',
            navigationHoverBackgroundColor:'#b22222',
            buttonHoverBackgroundColor:'#b22222',
        }
    }

    store.set(THEMES, themesInfo);
    console.log('store success')
}